package com.codegenerate.demo.exceptions;

import org.springframework.stereotype.Component;

@Component
public class ValidateBusinessException  extends RuntimeException{
    private long code;
    private String msg;


    public ValidateBusinessException() {
    }
    public ValidateBusinessException(String message,long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ValidateBusinessException(long code) {
        this.code = code;
    }


    public ValidateBusinessException(String msg) {
        this.msg = msg;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
